import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

// 查询问卷列表
export function queryByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-survey-info/queryByCondition`,
    method: 'get',
    params: data
  })
}

// id查询问卷详情
export function queryById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-survey-info/queryById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 删除问卷
export function deleteById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-survey-info/deleteById/${data.id}`,
    method: 'get',
    params: data
  })
}
